﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RemoteImaging.FaceCapture
{
    public static class Helper
    {

        public static FaceCountPerHour FindFaceCountByTime(DateTime hour, DevExpress.Xpo.Session session)
        {
            var xpq = new DevExpress.Xpo.XPQuery<FaceCountPerHour>(session);
            var q = from r in xpq
                    where r.Time.Date == hour.Date
                    select r;

            return q.FirstOrDefault();
        }

    }
}
